home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch17 / pi / 3cylindr / 3cylindr.pi < prev   
Encoding:
Text File  |  1994-08-05  |  845 b   |  46 lines

  1. // Scene File: 3CYLINDR.PI
  2. // Author: Rob McGregor
  3.  
  4. // Three identical cylinders at different scale
  5.  
  6. include "..\..\..\colors.inc"
  7. include "..\..\..\texture.inc"
  8.  
  9. // SET UP THE CAMERA
  10. viewpoint {
  11.   from       <0, 0, -4>
  12.   at         <0, 0, 0>
  13.   up         <0, 1, 0>
  14.   angle      45
  15.   resolution 320, 200
  16.   aspect     1.6
  17. }
  18.  
  19. background white
  20.  
  21. // Lights
  22. light <-5, 0, -10>
  23. light <5, 0, -10>
  24.  
  25. // The cylinder at 2 units high.
  26. object {
  27.   cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
  28.   scale <1, 2, 1>
  29.   translate <-1.2, 0, 0>
  30.   shiny_red
  31. }
  32.  
  33. // The cylinder becomes half its original height.
  34. object {
  35.   cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
  36.   shiny_red
  37. }
  38.  
  39. // The cylinder becomes a hockey puck.
  40. object {
  41.   cylinder <0, -0.5, 0>, <0, 0.5, 0>, 0.25
  42.   scale <1, 0.25, 1>
  43.   translate <1.2, 0, 0>
  44.   shiny_red
  45. }
  46.